<template>
  <div class="index">
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-link to='/home'>首页</router-link>
      <router-link to='/discuss'>谈论</router-link>
      <router-link to='/car'>选车</router-link>
      <router-link to='/city'>北京</router-link>
      <router-link to='/my'>我的</router-link>
    </footer>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.index{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1;
  overflow: scroll;
}
footer{
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
footer a{
  color: black;
}
footer a.router-link-active{
  color: tomato;
}
</style>